﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace TimeTracker.Model
{
    public class Task
    {
        public int Id { get; set; }
        [Required(ErrorMessage="Title is required")]
        public string Name { get; set; }
        public string Description { get; set; }
        public TaskStatus Status { get; set; }

        [Range(0,5)]
        public int Urgency { get; set; }
        [Range(0,5)]
        public int Importance { get; set; }

        public int ActivityId { get; set; }
        public string ActivityName { get; set; }

        public List<TimeEntry> TimeEntries { get; set; }
    }
}
